#include <iostream>
#include <cstring>
int main(int argc, char const *argv[])
{
	using namespace std;
	char word[5] = "?ate";
	/**
	 * 使用!=也能解决该问题
	 */
	for (char ch ='a'; strcmp(word,"mate"); ch++)
	{
		cout << word <<endl;
		word[0] = ch;
	}
	cout << "after loop ends,word is "<<word << endl;
	return 0;
}